package com.zhengke.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

public class TvUser implements Serializable {
    private static final long serialVersionUID = 1L;
    private String userId;

    private String userName;

    private String userPhone;

    private String userPass;

    private String userCardNumber;

    private String userHomePhone;

    private Short statu;

    private Integer provinceId;

    private Integer cityId;

    private Integer servicePointId;

    private String addressDetail;

    private BigDecimal userIntegral;

    private BigDecimal userBalance;

    private String receiptTime;

    private Short deliveryWay;

    private String createTime;

    private String loginName;

    private String loginPwd;

    private String lastLoginIp;

    private String lastLoginTime;

    private Integer loginTimes;

    private String userPost;

    private Integer createUserId;

    private String createUserName;

    private Integer updateUserId;

    private String updateUserName;

    private String updateTime;

    private Integer createUseId;
    

    /**
     * 	锁定限制登录key: user:loginTime:lock:用户名
     */
    public static String getLoginTimeLockKey(String userName) {
    	return "user:loginTime:lock:"+userName;
    }
    
    /**
     * 	登录失败次数key user:loginCount:fail:用户名
     */
    public static String getLoginCountFailKey(String userName) {
    	return "user:loginCount:fail:"+userName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone == null ? null : userPhone.trim();
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass == null ? null : userPass.trim();
    }

    public String getUserCardNumber() {
        return userCardNumber;
    }

    public void setUserCardNumber(String userCardNumber) {
        this.userCardNumber = userCardNumber == null ? null : userCardNumber.trim();
    }

    public String getUserHomePhone() {
        return userHomePhone;
    }

    public void setUserHomePhone(String userHomePhone) {
        this.userHomePhone = userHomePhone == null ? null : userHomePhone.trim();
    }

    public Short getStatu() {
        return statu;
    }

    public void setStatu(Short statu) {
        this.statu = statu;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public Integer getServicePointId() {
        return servicePointId;
    }

    public void setServicePointId(Integer servicePointId) {
        this.servicePointId = servicePointId;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail == null ? null : addressDetail.trim();
    }

    public BigDecimal getUserIntegral() {
        return userIntegral;
    }

    public void setUserIntegral(BigDecimal userIntegral) {
        this.userIntegral = userIntegral;
    }

    public BigDecimal getUserBalance() {
        return userBalance;
    }

    public void setUserBalance(BigDecimal userBalance) {
        this.userBalance = userBalance;
    }

    public String getReceiptTime() {
        return receiptTime;
    }

    public void setReceiptTime(String receiptTime) {
        this.receiptTime = receiptTime == null ? null : receiptTime.trim();
    }

    public Short getDeliveryWay() {
        return deliveryWay;
    }

    public void setDeliveryWay(Short deliveryWay) {
        this.deliveryWay = deliveryWay;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getLoginPwd() {
        return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
        this.loginPwd = loginPwd == null ? null : loginPwd.trim();
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp == null ? null : lastLoginIp.trim();
    }

    public String getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(String lastLoginTime) {
        this.lastLoginTime = lastLoginTime == null ? null : lastLoginTime.trim();
    }

    public Integer getLoginTimes() {
        return loginTimes;
    }

    public void setLoginTimes(Integer loginTimes) {
        this.loginTimes = loginTimes;
    }

    public String getUserPost() {
        return userPost;
    }

    public void setUserPost(String userPost) {
        this.userPost = userPost == null ? null : userPost.trim();
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public Integer getUpdateUserId() {
        return updateUserId;
    }

    public void setUpdateUserId(Integer updateUserId) {
        this.updateUserId = updateUserId;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName == null ? null : updateUserName.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    public Integer getCreateUseId() {
        return createUseId;
    }

    public void setCreateUseId(Integer createUseId) {
        this.createUseId = createUseId;
    }

	@Override
	public String toString() {
		return "TvUser===>userId=" + userId + ", userName=" + userName + ", userPhone=" + userPhone + ", userPass="
				+ userPass + ", userCardNumber=" + userCardNumber + ", userHomePhone=" + userHomePhone + ", statu="
				+ statu + ", provinceId=" + provinceId + ", cityId=" + cityId + ", servicePointId=" + servicePointId
				+ ", addressDetail=" + addressDetail + ", userIntegral=" + userIntegral + ", userBalance=" + userBalance
				+ ", receiptTime=" + receiptTime + ", deliveryWay=" + deliveryWay + ", createTime=" + createTime
				+ ", loginName=" + loginName + ", loginPwd=" + loginPwd + ", lastLoginIp=" + lastLoginIp
				+ ", lastLoginTime=" + lastLoginTime + ", loginTimes=" + loginTimes + ", userPost=" + userPost
				+ ", createUserId=" + createUserId + ", createUserName=" + createUserName + ", updateUserId="
				+ updateUserId + ", updateUserName=" + updateUserName + ", updateTime=" + updateTime + ", createUseId="
				+ createUseId + "<====";
	}
    
}